package com.bjb.vr.common.dto;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @TableName res_playcontent
 */
@TableName(value = "res_playcontent")
@Data
public class ResPlaycontent extends BaseModel implements Serializable {
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    private String tenantId;

    /**
     * 数据ID用于同步
     */
    @TableField(value = "data_id", fill = FieldFill.INSERT)
    private Long dataId;

    /**
     * 用户id
     */
    @TableField(value = "account_id", fill = FieldFill.INSERT)
    private Long accountId;

    /**
     * 播放列表id
     */
    @TableField(value = "play_id")
    private Long playId;

    /**
     * 播放资源ID，关联资源库
     */
    @TableField(value = "res_id")
    private Long resId;

    /**
     * 资源播放顺序，从1开始
     */
    @TableField(value = "play_order")
    private Integer playOrder;

    /**
     * 创建时间，单位：毫秒
     */
    @TableField(value = "gmt_create")
    private LocalDateTime gmtCreate;

    /**
     * 更新时间，单位：毫秒
     */
    @TableField(value = "gmt_modified")
    private LocalDateTime gmtModified;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     *课程名字
     */
    @TableField(exist = false)
    private String resName;

    /**
     *课程类型
     */
    @TableField(exist = false)
    private String resType;

    /**
     *课程大小
     */
    @TableField(exist = false)
    private String capacity;
}